package wechat.app;

import org.eclipse.xtext.xbase.lib.ObjectExtensions;
import org.eclipse.xtext.xbase.lib.Procedures.Procedure1;
import wechat.app.WCCorpApplication;
import wechat.app.WXCorpAppFactory;

@SuppressWarnings("all")
public class UserID {
  private static String userid = null;
  
  public static String getUserId(final String code) {
    String _xblockexpression = null;
    {
      WCCorpApplication _defaultCorpApp = WXCorpAppFactory.getDefaultCorpApp();
      final Procedure1<WCCorpApplication> _function = new Procedure1<WCCorpApplication>() {
        public void apply(final WCCorpApplication it) {
          UserID.userid = it.getUserId(code);
        }
      };
      ObjectExtensions.<WCCorpApplication>operator_doubleArrow(_defaultCorpApp, _function);
      _xblockexpression = UserID.userid;
    }
    return _xblockexpression;
  }
}
